package com.hqq.behaviour.template_method;

/**
 * App
 * Created by heqianqian on 2017/6/19.
 */
public class App {

    public static void main(String[] args) {
        HalflingThief halflingThief = new HalflingThief(new SubtleMethod());
        halflingThief.steal();

        halflingThief.changeMethod(new HitAndRunMethod());
        halflingThief.steal();
    }

}
